// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Author: wsfuyibing <682805@qq.com>
// Date: 2024-08-12

package validator

import (
    "gitee.com/go-libs/validator-iris/validator/src"
)

var (
    // Operator
    // is an alias for src.Operator used to process validate.
    Operator = src.Operator

    // Struct
    // validates any struct instance.
    Struct = src.Struct
)

var (
    // Form
    // is an alias function for src.Form. It's read data from a form that
    // formatted as application/x-www-form-urlencoded.
    Form = src.Form

    // FormWithQuery
    // is an alias function for src.FormWithQuery. It's read data from
    // url string and form that formatted as application/x-www-form-urlencoded.
    FormWithQuery = src.FormWithQuery

    // Json
    // is an alias function for src.Json. It's read data from a form that
    // formatted as application/json.
    Json = src.Json

    // JsonWithQuery
    // is an alias function for src.JsonWithQuery. It's read data from url string
    // and form that formatted as application/json.
    JsonWithQuery = src.JsonWithQuery

    // Query
    // is an alias function for src.Query. It's read data from url string.
    Query = src.Query

    // Xml
    // is an alias function for src.Xml. It's read data from a form that
    // formatted as application/xml.
    Xml = src.Xml

    // XmlWithQuery
    // is an alias function for src.XmlWithQuery. It's read data from url
    // and form that formatted as application/xml.
    XmlWithQuery = src.XmlWithQuery
)
